/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sport;

import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.List;
import javax.ejb.CreateException;
import javax.ejb.EJBObject;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import javax.naming.NamingException;
import team.Team;

/**
 *
 * @author denaas
 */
public interface TeamManagerRemote extends EJBObject {
    public void add(Team team) throws SQLException, NamingException, CreateException, RemoteException ;    
    public void edit(Team team) throws SQLException, NamingException, FinderException, RemoteException;    
    public void remove(Integer teamId, Integer sportId) throws SQLException, NamingException, FinderException, RemoteException, RemoveException;
    public Team selectOne(Integer teamId, Integer sportId) throws SQLNotFoundException, SQLException, NamingException, RemoteException, FinderException;    
    public List selectMany(Integer sportId) throws SQLNotFoundException, SQLException, NamingException, RemoteException;
}
